#ifndef DETECTION_H
#define DETECTION_H
#include <QObject>
#include <QString>

/**
 * @brief 访问数据库中Detection表格的pojo类
 */

class Detection : public QObject
{
    Q_OBJECT
public:
    Detection();
    Detection(int id, int seatid, QString position, QString detecttime, QString note)
    {
        this->id = id;
        this->seatid = seatid;
        this->position = position;
        this->detecttime = detecttime;
        this->note = note;
    }

private:
    int id;
    int seatid;
    QString position;
    QString detecttime;
    QString note;

public:
    int getId() { return id; }
    int getSeatId() { return seatid; }
    QString getPosition() { return position; }
    QString getDetectTime() { return detecttime; }
    QString getNote() { return note; }

    void setId(int value) { id = value; }
    void setSeatId(int value) { seatid = value; }
    void setPosition(QString value) { position = value; }
    void setDetectTime(QString value) { detecttime = value; }
    void setNote(QString value) { note = value; }
};

#endif // DETECTION_H
